
package com.borqs.music.http;

import java.net.HttpURLConnection;

public interface HttpConfiguration {
    
    String APP_ID = "3";
    String APP_SECRECT = "appSecret" + APP_ID;

    /**
     * Only use this field the {@link #isUseProxy()} is true;
     * @return http proxy host
     */
    String getHttpProxyHost();
    /**
     * Only use this field the {@link #isUseProxy()} is true;
     * @return http proxy port
     */
    int getHttpProxyPort();

    /**
     * HttpConnectionTimeout
     * @see {@link HttpURLConnection#setConnectTimeout(int timeout)}
     * @return the connecting timeout in milliseconds.
     */
    int getHttpConnectionTimeout();

    /**
     * HttpReadTimeout
     * @see {@link HttpURLConnection#setReadTimeout(int timeout)}
     * @return  the reading timeout in milliseconds.
     */
    int getHttpReadTimeout();

    /**
     * retry count
     * @return
     */
    int getHttpRetryCount();

    /**
     * retry interval
     * @return the retry interval in milliseconds.
     */
    int getHttpRetryInterval();

    /**
     * @return isUseProxy
     */
    boolean isUseProxy();
}
